﻿using NodeCanvas.BehaviourTrees;
using NodeCanvas.Framework;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    public class CheckNpcAnimationState : AIConditionBaseNode
    {
        public BBParameter<AnimationState> npcAnimationState = AnimationState.Undefine;

        protected override bool OnCheck()
        {
            if (_entity && (_entity.data.animationState == npcAnimationState.value))
            {
                return true;
            }
            return false;
        }
    }
}